package com.yxym.poly.polyparameter_;

public class Worker extends Employee{
    public Worker(String name, double salary) {
        super(name, salary);
    }
    public void work(){
    //工人的工作方法
        System.out.println("工人" + getName() + "正在工作");
    }
    @Override
    //重写方法getAnnual
    public double getAnnual() {
        return super.getAnnual();
    }
}
